home *** CD-ROM | disk | FTP | other *** search
/ Sunday Savers: Singing Fun! / Sunday Savers: Singing Fun!.iso / mac / Xtras / Buddy API 3.7 / Buddy API Docs.swf / texts / 1512.txt < prev    next >
Encoding:
Text File  |  2004-08-31  |  2.6 KB  |  105 lines

  1. 118
  2. --- RECORDSEPARATOR ---
  3.  
  4. --- RECORDSEPARATOR ---
  5. FileDate 
  6. --- RECORDSEPARATOR ---
  7. Platform:
  8. --- RECORDSEPARATOR ---
  9.  
  10. --- RECORDSEPARATOR ---
  11. Windows
  12. --- RECORDSEPARATOR ---
  13.  
  14. --- RECORDSEPARATOR ---
  15. Description:
  16. --- RECORDSEPARATOR ---
  17.  
  18. --- RECORDSEPARATOR ---
  19. baFileDate returns the date of a file as a string.
  20. --- RECORDSEPARATOR ---
  21.  
  22. --- RECORDSEPARATOR ---
  23. Usage:
  24. --- RECORDSEPARATOR ---
  25.  
  26. --- RECORDSEPARATOR ---
  27. Result = baFileDate( FileName , DateFormat , TimeFormat )
  28. --- RECORDSEPARATOR ---
  29.  
  30. --- RECORDSEPARATOR ---
  31. Arguments:
  32. --- RECORDSEPARATOR ---
  33.  
  34. --- RECORDSEPARATOR ---
  35. String, String, String 
  36. --- RECORDSEPARATOR ---
  37. FileName is the file to get the date of. 
  38. --- RECORDSEPARATOR ---
  39. DateFormat is the desired format of the date, 
  40. --- RECORDSEPARATOR ---
  41. TimeFormat is the desired format of the time.
  42. --- RECORDSEPARATOR ---
  43.  
  44. --- RECORDSEPARATOR ---
  45. Returns:
  46. --- RECORDSEPARATOR ---
  47.  
  48. --- RECORDSEPARATOR ---
  49. String. 
  50. --- RECORDSEPARATOR ---
  51. Returns the date of the file, or an empty string if the file doesn't exist.
  52. --- RECORDSEPARATOR ---
  53.  
  54. --- RECORDSEPARATOR ---
  55. Examples:
  56. --- RECORDSEPARATOR ---
  57.  
  58. --- RECORDSEPARATOR ---
  59. Director: 
  60. --- RECORDSEPARATOR ---
  61. set OK = baFileDate( "c:\data\student.dat" , "dd-mm-yy" , "hh:nn:ss" ) 
  62. --- RECORDSEPARATOR ---
  63. Authorware: 
  64. --- RECORDSEPARATOR ---
  65. OK := baFileDate( "c:\\data\\student.dat" , "dd-mm-yy" , "hh:nn:ss" )
  66. --- RECORDSEPARATOR ---
  67.  
  68. --- RECORDSEPARATOR ---
  69. Notes:
  70. --- RECORDSEPARATOR ---
  71.  
  72. --- RECORDSEPARATOR ---
  73. The date format can consist of "d" for day, "m" for month, "y" for year. 
  74. --- RECORDSEPARATOR ---
  75. The time format can consist of "h" for hours, "n" for minutes, "s" for seconds. (Note 
  76. --- RECORDSEPARATOR ---
  77. the "n" for minutes.) 
  78. --- RECORDSEPARATOR ---
  79. A single letter ("d") returns the exact number eg "5". 
  80. --- RECORDSEPARATOR ---
  81. A double letter ("dd") returns the number with a leading zero if required eg "05". 
  82. --- RECORDSEPARATOR ---
  83. A triple letter ("ddd") returns the short name eg "Mon". 
  84. --- RECORDSEPARATOR ---
  85. A quad letter ("dddd") returns the full name eg "Monday". 
  86. --- RECORDSEPARATOR ---
  87. Any letters other than those listed above will returned as is - they can be used for 
  88. --- RECORDSEPARATOR ---
  89. separators eg "dd-mm-yy" returns "05-11-97"; "d mmmm, yyyy" returns "5 
  90. --- RECORDSEPARATOR ---
  91. November, 1997" 
  92. --- RECORDSEPARATOR ---
  93. If the format is an empty string, then the date or time will not be returned.
  94. --- RECORDSEPARATOR ---
  95.  
  96. --- RECORDSEPARATOR ---
  97. See also:
  98. --- RECORDSEPARATOR ---
  99.  
  100. --- RECORDSEPARATOR ---
  101. baFileDateEx 
  102. --- RECORDSEPARATOR ---
  103. baFileAge 
  104. --- RECORDSEPARATOR ---
  105. baFileVersion